package com.wnn.demo.utils;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 控制层基类
 * @author asus
 */
@Controller
public class BaseController {


    protected HttpServletRequest request;
    protected HttpServletResponse response;


    @ModelAttribute
    public void setResAnReq(HttpServletRequest request,HttpServletResponse response) {
        this.request = request;
        this.response = response;
    }
}
